home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-03 | 1.5 KB | 62 lines | [TEXT/MPS ] |
- //----------------------------------------------------------------------------------------
- // MQD3DSample.cp
- // Copyright © 1996 by Apple Computer, Inc. All rights reserved.
- //----------------------------------------------------------------------------------------
-
- // QD3D Sample
-
- #ifndef __UQD3DApplication__
- #include "UQD3DApplication.h"
- #endif
-
- #ifndef __UQD3DViewer__
- #include "UQD3DViewer.h"
- #endif
-
- #ifndef __UCustomViewerWindow__
- #include "UCustomViewerWindow.h"
- #endif
-
- // MacApp
- #ifndef __UDIALOG__
- #include "UDialog.h"
- #endif
-
- #ifndef __UMACAPPGLOBALS__
- #include "UMacAppGlobals.h"
- #endif
-
- #ifndef __UMACAPPUTILITIES__
- #include "UMacAppUtilities.h"
- #endif
-
- // Generate universal code
- #pragma processor 68000
-
-
- //----------------------------------------------------------------------------------------
- // main:
- //----------------------------------------------------------------------------------------
- #pragma segment Main
-
- void main ()
- {
- InitUMacApp(4); // Initialize MacApp with 4 calls to MoreMasters
-
- #if qDrag
- if (HasDragManager())
- InitUDragManager();
- #endif
- InitUDialog();
- InitUQD3DViewerView(); // Initialize the application's view unit.
- InitUCustomViewerWindow();
- TQD3DApplication* aQD3DApplication = new TQD3DApplication; // Allocate application object
- aQD3DApplication->IQD3DApplication(); // Initialize the object
- aQD3DApplication->Run(); // Well lets run it then!
- } // main
-
- //----------------------------------------------------------------------------------------
- // End of MQD3DSample.cp
-
- #pragma segment Inline
-